SHELL = /bin/sh

CC = gcc

CCOPTS = -Wall -g -I../src

CFLAGS = $(CCOPTS) 

LIBS = ../obj/inetipc.a

all : nix_test tmr_test udp_test tcp_test

tmr_test : tmr_test.c $(LIBS)
	$(CC) $(CFLAGS) -o tmr_test.o  -c tmr_test.c
	$(CC) -o tmr_test tmr_test.o $(LIBS)

udp_test : udp_test.c $(LIBS)
	$(CC) $(CFLAGS) -o udp_test.o  -c udp_test.c
	$(CC) -o udp_test udp_test.o $(LIBS)

tcp_test : tcp_test.c $(LIBS)
	$(CC) $(CFLAGS) -o tcp_test.o  -c tcp_test.c
	$(CC) -o tcp_test tcp_test.o $(LIBS)

nix_test : nix_test.c $(LIBS)
	$(CC) $(CFLAGS) -o nix_test.o  -c nix_test.c
	$(CC) -o nix_test nix_test.o $(LIBS)
clean:
	rm -f *.o nix_test tmr_test udp_test tcp_test

.EXPORT_ALL_VARIABLES:


